import request from '@/utils/request'

// 查询绑卡记录列表
export function listPreVehicleBindcardRecord(query) {
  return request({
    url: '/billsdecl/preVehicleBindcardRecord/list',
    method: 'get',
    params: query
  })
}

// 查询绑卡记录详细
export function getPreVehicleBindcardRecord(id) {
  return request({
    url: '/billsdecl/preVehicleBindcardRecord/getInfo/' + id,
    method: 'get'
  })
}

// 新增绑卡记录
export function addPreVehicleBindcardRecord(data) {
  return request({
    url: '/billsdecl/preVehicleBindcardRecord/add',
    method: 'post',
    data: data
  })
}

// 修改绑卡记录
export function updatePreVehicleBindcardRecord(data) {
  return request({
    url: '/billsdecl/preVehicleBindcardRecord/edit',
    method: 'post',
    data: data
  })
}

// 删除绑卡记录
export function delPreVehicleBindcardRecord(id) {
  return request({
    url: '/billsdecl/preVehicleBindcardRecord/remove/' + id,
    method: 'get'
  })
}

// 导出绑卡记录
export function exportPreVehicleBindcardRecord(query) {
  return request({
    url: '/billsdecl/preVehicleBindcardRecord/export',
    method: 'get',
    params: query
  })
}
